from django.shortcuts import render
from django.conf import settings


# Create your views here.
def static_test(request):
    # ('django.contrib.staticfiles.finders.FileSystemFinder','django.contrib.staticfiles.finders.AppDirectoriesFinder')
    # 先从项目中找，没有找到就会再去app中找。
    print(settings.STATICFILES_FINDERS)
    # 获取请求的地址
    print(request.META['REMOTE_ADDR'])
    return render(request, 'booktest/static_test.html')


def index(request):
    # 获取请求的地址
    print(request.META['REMOTE_ADDR'])
    return render(request, 'booktest/index.html')
